www.webdeveloper.com
Results 1 to 6 of 6

Thread: Can you make an anchor tag open up a new page to set sizes without javascript popup

  1. #1
    Join Date
    Jul 2005
    Posts
    601

    Can you make an anchor tag open up a new page to set sizes without javascript popup

    Is it possible to use the <a href="webpage" target="new"> to open a new window that is set to a specific size without using javascript popup windows?

  2. #2
    Join Date
    Jul 2005
    Location
    USA
    Posts
    3,910
    No.

  3. #3
    Join Date
    Jul 2005
    Posts
    601
    is there a way of using javascript without the user needing to change any settings (such as making my site an exception or allowing for javascript) or the page being blocked by popup blockers??

  4. #4
    Join Date
    Jul 2005
    Location
    USA
    Posts
    3,910
    If you could get around technologies like that, what would be the point of them?

    Most popup-blockers don't block popups that are created via the onclick event.
    If the user disables JavaScript that is there choice -- avoid making your page dependent on it as much as possible.

    I suggest you use something like this:
    Code:
    <a href="http://www.example.com/" 
    onclick="return !window.open(this.href,'', 'width=400,height=400,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');">
    I use NoScript myself.

  5. #5
    Join Date
    May 2004
    Location
    Manhattan NY
    Posts
    6,028
    The answer to all questions is no, you can't do any of those things.

  6. #6
    Join Date
    Mar 2005
    Location
    Sydney, Australia
    Posts
    7,974
    The person who owns the computer decides how big their browser window will be, what fonts they view your web page in, whether Javascripts and/or popups can run etc.

    The only thing you have any control over is the content of the page defined in the HTML.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles