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 - call page changes

Status
Not open for further replies.

mici

Programmer
Jun 2, 2003
36
IL
I am using window.open to open pop up window , the window is being opened, but what also happens is that the page that calls the window is changing to the root page and it isnot suppose to change.
help?

my script:
<%Response.Write ("<a href="""" language=""javascript"" onmouseover =""window.open(file.asp?Id=" & bnumber & "' , 'file', 'width=400,height=200,scrollbars=yes')"">content</a>")%>
 
Change "<a href=""..." to "<a href="[red]#[/red]"..." or "<a href="[red]javascript:void(0);[/red]"..."

--Chessbot

"See the TURTLE of enormous girth!"
-- Stephen King, The Dark Tower series
 
You also need to add another single quote:

Code:
onmouseover =""window.open([b][red]'[/red][/b]file.asp?Id=" &  bnumber & "' , 'file', 'width=400,height=200,scrollbars=yes')"">
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top