Click to See Complete Forum and Search --> : Help please


shuffman
02-28-2003, 12:46 PM
I am not a javascript programer, but I use javascript extensively from code on the net :) Nothing new...
I am trying to do a very simple task but having problems. I would like to pop a window with a simple one line Href without needing to have a function on a page. I am using the following, but it is not working, can anyone help me out?

Thanks much.

<a href="javascript:window.open("http://www.virtuale-tours.com/tours/sample_Living_Room.htm","","height=440,width=520,left=150,top=50")">test</a>

This works as a function, but I don't have the access to the users page to add a function. I have permission to add a link to the page through a form only and I need to pop a window with an external page.

Thanks

Steve

pyro
02-28-2003, 12:52 PM
Try this instead, which will work even for those users with javascript disabled:

<a href="http://www.virtualetours.com/tours/sample_Living_Room.htm" onClick='window.open(this.href,"","height=440,width=520,left=150,top=50");return false;'>test</a>

shuffman
02-28-2003, 01:02 PM
Thank you very much for the quick response. That is exactly what I needed and works great.

Thanks again:D