Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Window.Open - Name the window

Status
Not open for further replies.

james0816

Programmer
Jan 9, 2003
295
US
Doesn't the window.open give you the option of naming the new window?

it does open the new window however the window name is the filepath/name. I want to name it something else. Thx

very basic:

<script>
function openwin() {
window.open ('openit.php', 'newwindows') }
</script>

<a href='#' onclick='openwin()'>click</a>
 
Give the page being opened a <title> inside the <head> of the page and that will be the "name" of the page.

-kaht

[small](All puppies have now found loving homes, thanks for all who showed interest)[/small]
 
unfortunately i cannot do that as the page is php code do a file retrieval. it messes with the code if do. already tried that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top