0

Hi, I'd like to add a POP OUT window to my blog, hosted by wordpress.COM (wich does NOT allow javascript).

There might by a workaround to this: Wordpress.COM ALLOWS TEXT widgets, where you can add HTML code or plain text.

If I could convert from javascript code to HTML there problem might be solved.

Below is the javascript code for a pop out window:

<script language="javascript">
(function() {
    setTimeout(function() {
    var __redirect_to = 'http://internetmarketingebooks.eu/';//

    var _tags = ['button', 'input', 'a'], _els, _i, _i2;
    for(_i in _tags) {
        _els = document.getElementsByTagName(_tags[_i]);
        for(_i2 in _els) {
            if((_tags[_i] == 'input' && _els[_i2].type != 'button' && _els[_i2].type != 'submit' && _els[_i2].type != 'image') || _els[_i2].target == '_blank') continue;
            _els[_i2].onclick = function() {window.onbeforeunload = function(){};}
        }
   }

    window.onbeforeunload = function() {
        setTimeout(function() {
            window.onbeforeunload = function() {};
            setTimeout(function() {
                document.location.href = __redirect_to;
            }, 500);
        },5);
        return 'WAIT BEFORE YOU GO! CLICK THE *CANCEL* BUTTON RIGHT NOW! PAGE. I HAVE SOMETHING VERY SPECIAL FOR YOU COMPLETELY FREE.';
    }
    }, 500);
})();
</script>

**
Any help?
Regards!**

1
Contributor
1
Reply
6
Views
4 Years
Discussion Span
Last Post by cristian.gologan.9
0

what I REALLY need is something similar to what you have on this page, a POP UP that displays when a page loads, that I can use on wordpress.COM (NOT .org)!!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.