-
javascript help Please
<script>
function openpopup(){
var popurl="calculator.htm"
winpops=window.open(popurl,"","width=600,height=50 0,")
}
</script>
<a href="javascript:openpopup()">Payment Calculator</a>
How do I position the pop up where I want.. It keep putting it in the center of the screen and about 1/4 of the window is below the browser??
thanks
Robert
-------
~Laus Deo
-
Oh heck, been ages since Ive done anything like this, try adding the following:
screenX=400,screenY=400,top=400,left=400
so you will have something like this
<script>
function openpopup(){
var popurl="calculator.htm"
winpops=window.open(popurl,"","width=600,height=50 0, screenX=100,screenY=100,top=100,left=100")
}
</script>
x and y are IE positions and top and left are netscape I think, but I am not sure about whether any commas or colons or stuff should go anywhere ..... and havent time to test it out as have to dash ......
-
Ugh, juist had time to test and it doesnt work, ..... sorry, will play with it shortly .... can you change your height measurement or has it got to be 500 .....
-
ugh! it does work ... hee, try this ... I was using measurements that sent it off the page
<script>
function openpopup(){
var popurl="calculator.htm"
winpops=window.open(popurl,"","width=600,height=50 0, screenX=50,screenY=50,top=50,left=50")
}
</script>
-
Don't worry I could not get it either. So I cheated and used jbots and had it do the code.. I have been trying to hand code more but I guess I will let the programs do their thing.
thanks
Robert
-------
~Laus Deo
-
thats the best solution of all .... jbots!! didnt realise it positioned windows as well.... must take a deeper look at it.
-
Wow for someone that uses 800x600 that is a big calculator!!! :bounce: :pullingyourleg:
-
Its Roberts age - JJ - he needs large print versions now .....
:roll:
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks