Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop window.location execution in global context

I want to stop execution of window.location as in below when a page loads:

<script type="text/javascript">
alert('Bid closed ');
window.location = '/index.html';
</script>

I'm able to bypass alert message by replacing alert function during document_start in the manifest.json. But unable to stop window.location from executing.

like image 507
user5858 Avatar asked Oct 30 '22 09:10

user5858


1 Answers

window object is not writable, so you cannot change document and window objects check this link for more info

like image 94
Pranoy Sarkar Avatar answered Nov 15 '22 18:11

Pranoy Sarkar