E
E
Evgeny Fedorov2014-06-05 14:11:31
PHP
Evgeny Fedorov, 2014-06-05 14:11:31

How to fix a bug in Google Chrome

I write (php):

$tos_pop = "<a href=\"#\" onClick=\"window.open('http://www.google.com','GoogleWindow', 800, 600);\">";

The inspector goes crazy, breaks syntactically incorrectly, resulting in an error in the console and the code does not work. Where did the double quote come from? 1401966386-clip-4kb.png?nocache=1
I remove the address, I write one. Everything is working.
1401966296-clip-5kb.png?nocache=1

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stepan, 2014-06-05
@L3n1n

Sorry, but what does PHP server code have to do with the browser?

I
Ilya Lesnykh, 2014-06-05
@Aliance

Look at the code not in the inspector, but in the "page code view". If it's the same there, it means an error occurred during generation. Otherwise, the error of the inspector.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question