Hi I have 2 questions concerning javascript pop ups:
1) The following code is for a small pop up information window. I have the following javascript code inserted in the header:
function popwindow()
{
window.open
("../window.html","my_new_window","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=450, height=550")
}
And this script is in the body:
<a href="#" onClick="popwindow()">popup</a>
Now the script works fine but when you click on it it takes you to the top of the main page. This is annoying and if i take away the href="#" then the mouse over effect does not show and I want to have that (I want the hand with the finger pointing indicating it is a link).
2) This question is for a different pop up window that has a similar effect. Lets say my pop up has a lot of text and there's a lot of scrolling to do. How do I make it so when the pop up appears it will take my user to a specific part of the page (like in the middle or towards the end)?
Thanks