/    Sign up×
Community /Pin to ProfileBookmark

Pop Up Window Size Fixed And Displaying All The Contents

I need to know in JAVASCRIPT, HOW to make the pop up window size fixed and thus displaying all the available contents in it.

Scenario:
Its like , a button is clicked, thus showing the pop up window.
I need to include a JAVA SCRIPT CODE in my HTML code which will make the pop up window fixed size AND THUS SHOWING ALL THE AVAILABLE CONTENTS THAT IS IN MY HTML.

POP UP WINDOW FIXED SIZE MEANS:
The User should not be able to drag the window and make it bigger or smaller.The user should not have this option.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@_some_guyApr 26.2006 — Here's the function code you will need:

[COLOR=Navy]<script>

function winopenpop(){

win = window.open("popup.htm","NewWin","toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=640,height=480")

}

</script>[/COLOR]


  • - Call on page load: <BODY onLoad="winopenpop()"; background=".....

  • - Call from link or image: ... onClick="winopenpop()";

  • - Just change the [B]height[/B] and [B]width[/B] to what you want.


  • Cheers! ?
    ×

    Success!

    Help @deepak25031984 spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.20,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...