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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with onClick - open browser window

Status
Not open for further replies.

jlevine

Technical User
Aug 1, 2007
2
CA
I've set up a page that should open the browser window when a specific word is clicked. The correct window does get opened, but the whole homepage also gets opened on top.

My references look like this:
<a href="#" target="_blank" onClick="MM_openBrWindow('abc.html','','width=700,height=300')">ABC Daycare</a><br>
The ABC Daycare page comes up, but so does the whole page.

Anyone have any ideas?

Thanks.
 
but so does the whole page."
...meaning that your starting page gets re-opened in whole new window along with 'abc.html'...or does the 'abc.html' contain same copy of the original?

:--------------------------------------:
fugitive.gif


All around in my home town,
They tryin' to track me down...
 
It was the homepage that was opening on top. I've found a solution on the web - I added "return false" to the code and it's working fine now. I don't understand quite why, but it's working so I'm happy.

onClick="MM_openBrWindow('abc.html','','width=700,height=280'); return false"

Thanks.
 
may have something to do with the rest of the JS in your page...for test you can fill in the rest of the 'proporties' of the page being opened (scrolling etc.)
gald you got it working.
All the best!

:--------------------------------------:
fugitive.gif


All around in my home town,
They tryin' to track me down...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top