Question:

HTML code to open small window, not full-size?

by  |  earlier

0 LIKES UnLike

I made a webpage that says "this website is secure" and stuff like that. Then I made a seal/sign that says "click to verify". When you click on the sign (which is a jpg image) I need it to open the webpage in a new small window; the exact size of the webpage.

How can I do this? What code do I put in and where? Please help. Thanks!

 Tags:

   Report

1 ANSWERS


  1. to control the size of a pop up window you can use javascript

    e.g

    <a href="mywin.htm" target="name"

    onclick="window.open('mywin.htm','name...

    continued from previous line width=250,toolbar=no,directories=no,stat...

    continued from previous line menubar=no,scrollbars=no,resizable=no'); return false;"

    >click here</a>

    The problem with using popups is it raises usability issues, end users might have a non javascript complient browser or more likely have javascript disabled or  a popup blocker enabled

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.