Javascript for Safari

Jump to First Reply
Posted:
in Genius Bar edited January 2014
Hello everyone, I have question. I'm designing a web page that I want to open at a certain size I want it to be 800 pixels wide. I'm using Adobe GoLive 6.0 and I'm COMPLETELY new to Javascript. Can you tell me EXACTLY what to coe and where. I'm using HTML.



Thanks for your time. If I get a fast enough reply, you'll save my ass!!!!!

Comments

  • Reply 1 of 3
    I think you can use something like this:



    Code:


    javascript:win=window.open('bookmarks://','','toolbar=0,location=0,directories=0,status=1, menubar=0,scrollbars=1,resizable=1,top=0,left=0'); win.resizeTo(800,600);







    Good luck



    p.s. There's no space in javascript
     0Likes 0Dislikes 0Informatives
  • Reply 2 of 3
    Quote:

    Originally posted by Dale Sorel

    I think you can use something like this:



    Code:


    javascript:win=window.open('bookmarks://','','toolbar=0,location=0,directories=0,status=1, menubar=0,scrollbars=1,resizable=1,top=0,left=0'); win.resizeTo(800,600);







    Good luck



    p.s. There's no space in javascript





    That's great, but where in my HTML do I put that code?

    Thanks
     0Likes 0Dislikes 0Informatives
  • Reply 3 of 3
    try this..



    Code:




    <html>

    <head>

    <title> Bleh </title>

    </head>

    <body>

    <a href="#" onclick="window.open('some url','windowname','parameters');">

    Click here to continue

    </a>

    </body>

    </html>









    You would obviously replace 'some url' with http://etc, and parameters could look like this:-

    Code:




    width=800,height=600,top=0,left=0





     0Likes 0Dislikes 0Informatives
Sign In or Register to comment.