![]() |
Java Problem
Help, I'm writing a photoalbum in JAVA and need some help...
I want to change the title of the browser window (the remote one) to something more meaningful (like my webspace name) The code which creates a new window with the image in is: imgName="photos/st_"+aImage[iImagenum] imgWindow=window.open(imgName,"imgWin","Width=660, height=510,scrollbars=no,status=yes") imgWindow.window.status=aText[iImagenum] I can change the "Status Bar" of the window as in the 3rd line of code above, but I want to change/set the title (Ie. nthellworld.co.uk at the top left of your browser). Any ideas?:confused: |
Best I could manage but it works!:eek: :eek:
imgName="photos/st_"+aImage[iImagenum] imgWindow=window.open('','imgWin','height=510,widt h=660,scrollbars=no,status=yes'); imgWindow.document.write('<HTML><HEAD><TITLE>Your Selected Image: '+aImage[iImagenum]+'</TITLE>'); imgWindow.document.write('<LINK REL="stylesheet" HREF="../../../rtstyle_zeddy.css">'); imgWindow.document.write('</HEAD>'); imgWindow.document.write('<BODY>'); imgWindow.document.write("<IMG SRC="+imgName+" </IMG>"); imgWindow.document.write('</BODY></HTML>'); imgWindow.window.status=aText[iImagenum] |
Quote:
|
Code:
<html>Guess it depends whether that's important |
Cheers mate, I was certain that I'd tried the obvious but alas I can't have done - I've stuck with my dodgy code because I've duplicated it in a number of html pages now!!!
Thanks again...:D |
could you not just use document.title ?
edit: should maybe read whole thread before replying :spin: |
Maybe you should select everthing before you start to copy over to another location
|
Quote:
|
You shouldn't be using IE only JS, try learning the proper way with the DOM:
http://www.w3.org/DOM/ |
Umm err no notepad to be precise:mad: :mad: :mad:
|
| All times are GMT. The time now is 10:01. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum