html - webkit redirect to blank page with javascript content -


i have form contain textarea write html store in database , render later. works content including javascript code inside textarea. however, when code contain

self.location.href 

after save, redirect blank page. happen in webkit browser such safari , chrome firefox , ie not have problem.

does have idea?

the keyword self.location supported browsers, not in standard way

if want use this.location or document.location check affects or not.

this should do, if not,

the problem might return value, browser webkit not return value true/false self.location need add code return false manually..

note: please provide work/ code better understanding of problem.

edit: clarification on problem input , button.

i have updated fiddle you, please check reply if doubt.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -