1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resizing an iframe after submit using javascript history or something?

Discussion in 'Black Hat SEO' started by anhilation, Oct 7, 2011.

  1. anhilation

    anhilation Junior Member

    Joined:
    Oct 4, 2009
    Messages:
    150
    Likes Received:
    40
    hey, can someone help me? im trying to use javascript history to resize an iframe when a submit button is clicked inside the iframe, im a newbie to javascript and i would be you grateful forever if you could help me out!

    this is what i found so far.

    Code:
    <script type='text/javascript'> function checkHistory() { var hist=history.length; if (hist>1)//just change value 1 to other if you need :) { //redirect or resize or whatever... :p } } </script>
    3)Us this with iframe:
    Code:
    Code:
    onload="checkHistory()"
    but im not really sure on how to apply this to my iframe, and i know that the resize part also needs to be edited, but what is missing? can someone help me out?